﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
using FM.录音.Data;
using FM.录音.Services;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace FM.录音.Test
{
    [TestClass]
    public class 配置序列化test
    {
        [TestMethod]
        public void 配置序列化_test()
        {

            dynamic b = new XmlSerializer(typeof(Fm定时任务1));
            Assert.IsNotNull(b);
            b.Serialize(new MemoryStream(), new Fm定时任务1());

            dynamic c = new XmlSerializer(typeof(Fm录音配置1));
            Assert.IsNotNull(c);
            c.Serialize(new MemoryStream(), new Fm录音配置1());


            dynamic d = new XmlSerializer(typeof(系统配置));
            Assert.IsNotNull(d);
            d.Serialize(new MemoryStream(), new 系统配置());
        }


    }
}
